package com.autumn.oauth2.zero.domain.entities;

import javax.persistence.Column;

import com.autumn.domain.entities.AbstractDefaultEntity;
import com.autumn.mybatis.mapper.annotation.ColumnOrder;
import com.autumn.mybatis.mapper.annotation.Index;

/**
 * 用户子级抽象
 * 
 * @author 老码农 2018-04-10 23:56:32
 */
public abstract class AbstractUserChild extends AbstractDefaultEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 8090841788180245546L;

	/**
	 * 用户Id
	 */
	@ColumnOrder(1)
	@Column(name = "user_id", nullable = false)
	@Index
	private Long userId;

	/**
	 * 获取用户Id
	 * 
	 * @return
	 */
	public Long getUserId() {
		return userId;
	}

	/**
	 * 设置用户Id
	 * 
	 * @param userId
	 *            用户Id
	 */
	public void setUserId(Long userId) {
		this.userId = userId;
	}
}
